using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;

namespace CodeStory.WebControls
{
	[ToolboxItem(false)]
	public class TreeGridCell : TableCell
	{
		public int ItemIndent {
			get {
				object obj = ViewState["ItemIndent"];
				return obj == null ? 0 : (int)obj;
			}
			set { ViewState["ItemIndent"] = value; }
		}

		protected override void AddAttributesToRender(System.Web.UI.HtmlTextWriter writer) {
			writer.AddStyleAttribute(System.Web.UI.HtmlTextWriterStyle.PaddingLeft, Unit.Pixel(ItemIndent).ToString());
			base.AddAttributesToRender(writer);
		}
	}
}
